package com.demo.salary.transactionimplementation;

import com.demo.salary.abstracttransactions.AddEmployeeTransaction;
import com.demo.salary.payrollimplementation.MonthlySchedule;
import com.demo.salary.payrolldomain.PaymentClassification;
import com.demo.salary.payrolldomain.PaymentSchedule;
import com.demo.salary.payrollimplementation.SalariedClassification;

public class AddSalariedEmployee extends AddEmployeeTransaction {
    double itsSalary;

    public AddSalariedEmployee(int empId, String name, String address, double itsSalary) {
        super(empId, name, address);
        this.itsSalary = itsSalary;
    }

    @Override
    PaymentClassification getClassification() {
        return new SalariedClassification(itsSalary);
    }

    @Override
    PaymentSchedule getSchedule() {
        return new MonthlySchedule();
    }
}
